package com.neo.sevice.impl;

import com.neo.dao.UserInfoDao;
import com.neo.entity.UserInfo;
import com.neo.sevice.UserInfoService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    private UserInfoDao userInfoDao;
    
    @Override
    public UserInfo findByUsername(String username) {
        return userInfoDao.findByUsername(username);
    }

	@Override
	public List<String> findPermissionById(String id) {
		// TODO Auto-generated method stub
		return userInfoDao.findPermissionById(id);
	}

	@Override
	public String findRoleById(String id) {
		// TODO Auto-generated method stub
		return userInfoDao.findRoleById(id);
	}
}